package caidan.res;

import jinyilw.swing.icon.LazyCustomIcon;
import jinyilw.swing.icon.LazyScaleIcon;
import jinyilw.swing.ResourceManager;
import jinyilw.swing.rlaf.ui.icon.RIconFactory;

import javax.swing.Icon;
import java.awt.Color;
import java.awt.image.BufferedImage;

public class Resource
{
	public static Icon closeIcon = new RIconFactory.CloseSymbol(Color.yellow,
			15, 15);
	public static Icon submitIcon = getLazyScaleIcon("submit.png");
	public static Icon suggestIcon = getLazyScaleIcon("suggest.png");
	public static Icon newFoodIcon = getLazyScaleIcon("newFood.png");
	public static Icon addIcon = getLazyScaleIcon("add.png");
	public static Icon freshIcon = getLazyScaleIcon("refresh.png");
	public static Icon reconnectIcon = getLazyScaleIcon("links.png");
	public static LazyScaleIcon setNetIcon = getLazyScaleIcon("setNet.png");
	public static Icon connectIcon = getLazyScaleIcon("connect.png");
	public static Icon disconnectIcon = getLazyScaleIcon("disconnect.png");

	public static LazyScaleIcon starIcon = getLazyScaleIcon("star.png");
	public static LazyScaleIcon settingIcon = getLazyScaleIcon("setting.png");
	public static LazyScaleIcon settingIcon2 = getLazyScaleIcon("setting2.png");
	public static LazyScaleIcon heartIcon = getLazyScaleIcon("heart.png");
	public static LazyScaleIcon checkIcon = getLazyScaleIcon("check_mark.png");
	public static LazyScaleIcon chartIcon = getLazyScaleIcon("chart.png");
	public static LazyScaleIcon checklistIcon = getLazyScaleIcon(
			"checklist.png");
	public static LazyScaleIcon cancelIcon = getLazyScaleIcon("cancel.png");
	public static LazyScaleIcon bigFileIcon = getLazyScaleIcon("bigFile.png");
	public static LazyScaleIcon sendIcon = new LazyScaleIcon(Resource.class,
			"fsend.png", 1.2f, 1.2f);
	public static LazyScaleIcon copyIcon = new LazyScaleIcon(Resource.class,
			"copy.png", 1.2f, 1.2f);
	public static LazyScaleIcon arrowIcon1 = new LazyScaleIcon(Resource.class,
			"arrow1.png", 1.2f, 1.2f);
	public static LazyScaleIcon arrowIcon2 = new LazyScaleIcon(Resource.class,
			"arrow2.png", 1.2f, 1.2f);
	public static LazyScaleIcon deleteIcon = getLazyScaleIcon("delete.png");
	public static LazyScaleIcon editcategoryIcon = getLazyScaleIcon(
			"slider.png");
	public static LazyScaleIcon editIcon = getLazyScaleIcon("edit.png");
	public static LazyScaleIcon netIcon = getLazyScaleIcon("net.png");
	public static LazyScaleIcon ratingIcon = getLazyScaleIcon("rating.png");
	public static LazyScaleIcon textIcon = getLazyScaleIcon("text.png");
	public static LazyScaleIcon excelIcon = getLazyScaleIcon("excel.png");
	public static LazyScaleIcon searchIcon = new LazyScaleIcon(Resource.class,
			"search.png", 1.2f, 1.2f);
	public static LazyScaleIcon smallSearchIcon = new LazyCustomIcon(
			Resource.class, "search.png", 15, 15);

	private Resource()
	{
	}

	public static LazyScaleIcon getLazyScaleIcon(String path)
	{
		return new LazyScaleIcon(Resource.class, path);
	}

	public static LazyCustomIcon getLazyCustomIcon(String path, int width,
			int height)
	{
		return new LazyCustomIcon(Resource.class, path, width, height);
	}

	public static BufferedImage getBufferedImage(String path)
	{
		return ResourceManager
				.getBufferedImage(Resource.class.getResource(path));
	}
}
